#pragma once
#include<QImage>
#include<QWidget>
class Bird :public QWidget
{
public:
    Bird(int);
    ~Bird();
public:
    void resetState();
    void fly();
    void drop();
    QRect getRect();
    QImage & getImage();
    void birdWing();
    int level;
protected:
     void timerEvent(QTimerEvent *);
private:
    int timerId;
    QImage image;
    QRect rect;
    static const int INITIAL_X = 150;
    static const int INITIAL_Y = 260;
    QString dirOfWing[5];
    int curWing;
    qreal dy;
};
